<template>
    <div class="page-container">
      <ex_super_table_page v-bind="option" ref="SuperTablePage">
      </ex_super_table_page>
    </div>
</template>

<script>
import superTablePageFunction from '@/mixin/super-table-page-function';
export default {
  title: 'title_stock_adjustment_order_list',
  mixins: [superTablePageFunction],
  data() {
    return {

      option: {
        search: {
          model: [


            { label: "label_adjustment_order_code", key: "orderNo", type: 'input', },//
            {
              label: "label_status", key: "status", type: 'select',//
              enum: 'StockAdjustStatusEnum', 
            },
            {
              label: "label_source_type", key: "refSourceType", type: 'select',//
              enum: 'StockAdjustOrderSourceTypeEnum', 
            },
            { label: "label_source_order_code", key: "refCode", type: 'input',  },
            {
              label: "label_start_time",
              key: "createDateStart",
              fold: true,
              type: 'date-picker',
              attrs: {  type: "datetime"},
            },
            {
              label: "label_end_time",
              key: "createDateEnd",
              fold: true,
              type: 'date-picker',
              attrs: {  type: "datetime"},
            },

          ],
        },
        action: [
          // {
          //   label: '新增' + moduleName, attrs: { icon: "el-icon-plus" }, click: () => {
          //     this.dialogTitle = '新增' + moduleName
          //     this['$refs']['formDialog'].show(null, true)
          //   }
          // },
        ],

        table: {
          url: "/wms-api/inside/StockAdjustOrderRpc/selectByPage.json",
          attrs: {},
          model: [
            { key: 'orderNo', label: 'label_adjustment_order_code', },
            { key: 'bizType', label: 'label_business_type', 'width': 120, formatter: (r, c, v) => this.$enumShow(v, "BizTypeEnum") },

            { key: 'status', label: 'label_status','width': 110, formatter: (r, c, v, i) => this.$enumShow(v, "StockAdjustStatusEnum"),   },
            { key: 'refSourceType', label: 'label_fms_service_code_type','width': 110, formatter: (r, c, v, i) => this.$enumShow(v, "StockAdjustOrderSourceTypeEnum"),   },
            { key: 'locationCode', label: 'label_warehouse_location_code', 'width': 120, },
            { key: 'containerCode', label: 'label_container_code', 'width': 110, },
            { key: 'subContainerCode', label: 'label_sub_container_code', 'width': 130, },
            { key: 'batchId', label: 'label_batch_code','width': 110,  },
            { key: 'skuBarcode', label: 'label_sku_code', 'width': 110, },
            { key: 'skuName', label: 'label_sku_name','width': 110,  },
            { key: 'num', label: 'label_adjustment_count','width': 110,  },
            { key: 'gmtCreate', label: 'label_create_time','width': 130, 'show-overflow-tooltip': true, formatter: (r, c, v, i) => this.$dateFormat(v)   },

          ],

        }
        ,

      },

    };
  },
  methods: {
  }
}
</script>

<style scoped>

</style>
